#pragma once

#include "Includes.h"
#include "Exception.h"

class SocketException : public Exception {
public:
	SocketException( tstring tag, int errorCode);

	tstring toString();

	std::string what() override;


private:
	static tstring getErrorText( DWORD errorCode);
	int mErrorCode;
	tstring mErrorText;
};